Function:  unescape


unescape(encodedstring)
 
The top-level function, unescape, decodes an encoded string argument that was created using the escape function.
 
The function searches for two and four digit hexidecimal escape sequences and replaces them in the string with their single character Latin-1 equivalent. For example, %3B signifies a semicolon.
 
Code:
document.write(unescape("Miss%20Piggy%20loves%20Kermit%21"))

 
Output:
Miss Piggy love Kermit!


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information